-- 二级栏目权限表 SQL，注：9为t_right_types表中的id,为顶部导航栏目
insert into t_rights (type_id, name,code,description,belong,type,parent_id,sequence,identification,delete_status)values(9, '${model.comment}管理', '', '${model.comment}管理',0,0,0,1,'',0);
SELECT @selectId1 := LAST_INSERT_ID();
insert into t_rights (type_id, name,code,description,belong,type,parent_id,sequence,identification,delete_status)values(9, '${model.comment}管理', '/${model.packageName}/${model.modulePackage}/${model.model}Action/list', '${model.comment}管理',0,1,@selectId1,1,'${model.packageName}.${model.modulePackage}.${model.model}Action.list',0);
SELECT @selectId := LAST_INSERT_ID();
insert into t_rights (type_id, name,code,description,belong,type,parent_id,sequence,identification,delete_status)values(9, '${model.comment}新增保存', '/${model.packageName}/${model.modulePackage}/${model.model}Action/add', '${model.comment}新增保存',0,2,@selectId,3,'${model.packageName}.${model.modulePackage}.${model.model}Action.add',0);
insert into t_rights (type_id, name,code,description,belong,type,parent_id,sequence,identification,delete_status)values(9, '${model.comment}修改保存', '/${model.packageName}/${model.modulePackage}/${model.model}Action/edit', '${model.comment}修改保存',0,2,@selectId,5,'${model.packageName}.${model.modulePackage}.${model.model}Action.edit',0);
insert into t_rights (type_id, name,code,description,belong,type,parent_id,sequence,identification,delete_status)values(9, '${model.comment}删除', '/${model.packageName}/${model.modulePackage}/${model.model}Action/delete', '${model.comment}删除',0,2,@selectId,6,'${model.packageName}.${model.modulePackage}.${model.model}Action.delete',0);
insert into t_rights (type_id, name,code,description,belong,type,parent_id,sequence,identification,delete_status)values(9, '${model.comment}批量删除', '/${model.packageName}/${model.modulePackage}/${model.model}Action/deleteBatch', '${model.comment}批量删除',0,2,@selectId,7,'${model.packageName}.${model.modulePackage}.${model.model}Action.deleteBatch',0);
insert into t_rights (type_id, name,code,description,belong,type,parent_id,sequence,identification,delete_status)values(9, '${model.comment}详情', '/${model.packageName}/${model.modulePackage}/${model.model}Action/show', '${model.comment}详情',0,2,@selectId,8,'${model.packageName}.${model.modulePackage}.${model.model}Action.show',0);


/*
#路由${model.comment}
*   /${model.packageName}/${model.modulePackage}/${model.model}Action/list             ${model.packageName}.${model.modulePackage}.${model.model}Action.list
POST   /${model.packageName}/${model.modulePackage}/${model.model}Action/add            ${model.packageName}.${model.modulePackage}.${model.model}Action.add
POST   /${model.packageName}/${model.modulePackage}/${model.model}Action/edit             ${model.packageName}.${model.modulePackage}.${model.model}Action.edit
POST   /${model.packageName}/${model.modulePackage}/${model.model}Action/show              ${model.packageName}.${model.modulePackage}.${model.model}Action.show
POST   /${model.packageName}/${model.modulePackage}/${model.model}Action/delete                ${model.packageName}.${model.modulePackage}.${model.model}Action.delete
POST   /${model.packageName}/${model.modulePackage}/${model.model}Action/deleteBatch              ${model.packageName}.${model.modulePackage}.${model.model}Action.deleteBatch

//${model.comment}菜单 带权限的标签
#{operation key:'${model.packageName}.${model.modulePackage}.${model.model}Action.list',class:'xn_c_li_head_twoli',id:"mg_120",show_value:"${model.comment}管理",href:"/${model.packageName}/${model.modulePackage}/${model.model}Action/list"/}
*/